<?php
/**
 * 发货单处理
 *
 * @category 
 * @package 
 * @author chenping<chenping@shopex.cn>
 * @version $Id: Z
 */
class erpapi_shop_matrix_shopex_publicb2c_request_delivery extends erpapi_shop_matrix_shopex_request_delivery
{
    /**
     * 添加发货单参数
     *
     * @return void
     * @author 
     **/
    protected function get_add_params($sdf)
    {
        $param = parent::get_add_params($sdf);

        // 发货地址
        $consignee_area = $sdf['consignee']['area'];
        kernel::single('ome_func')->split_area($consignee_area);
        $receiver_state    = ome_func::strip_bom(trim($consignee_area[0]));
        $receiver_city     = ome_func::strip_bom(trim($consignee_area[1]));
        $receiver_district = ome_func::strip_bom(trim($consignee_area[2]));

        $param['receiver_state']    = $receiver_state;
        $param['receiver_city']     = $receiver_city;
        $param['receiver_district'] = $receiver_district;
        
        return $param;
    }
}